package pack1;

class base{
    base(){
        System.out.println("这是父类的无参构造函数");
    }
}

public class demo1 extends base {
    public static void main(String[] args) {

        new demo1();
        new base();
    }
}
